<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_log.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions" :searchFormFields="searchFormFields"
      :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
  import extend from "@/extension/mall/Mall_examine.js";
  import ViewGrid from "@/components/basic/ViewGrid1.vue";
  var vueParam = {
    components: {
      ViewGrid
    },
    data() {
      return {
        table: {
          key: 'id',
          footer: "Foots",
          cnName: '审批流程配置',
          name: 'Mall_work',
          url: "/Mall_work/",
          sortName: "createDate"
        },
        extend: extend,
        editFormFields: {},
        editFormOptions: [],
        searchFormFields: { "workName": "", "distributorCode": "", "contract_type": "" },
        searchFormOptions: [[{ "title": "流程名称", "field": "workName", "type": "text"  }]],
        columns: [
          { field: 'workName', title: '流程名称', type: 'string', width: 220, align: 'left' },
          { field: 'status', title: '审核状态', type: 'string', bind: { key: 'mall_workstatus', data: [] }, sortable: true, width: 120, align: 'left' },
          { field: 'contractId', title: '合同模板', type: 'string', width: 220, align: 'left', bind: { key: 'contract_nameall', data: [] }, },
          { field: 'elapsedTime', title: '是否启用', type: 'int', width: 90, align: 'left' },
          { field: 'remark', title: '备注', type: 'datetime', width: 90, align: 'left', sortable: true },
          { field: 'creator', title: '创建人', type: 'datetime', width: 90, align: 'left', sortable: true },
          { field: 'createDate', title: '创建时间', type: 'string', width: 90, align: 'left' },
          { field: 'modifier', title: '修改人', type: 'string', width: 90, align: 'left' },
          { field: 'modifyDate', title: '修改时间', type: 'string', width: 90, align: 'left' },
        ],
        detail: {
          cnName: "#detailCnName",
          columns: [],
          sortName: "",
          key: ""
        }
      };
    }
  };
  export default vueParam;
</script>